package FactoryMethod.Order;

import FactoryMethod.PizzaStore.LDCheesePizza;
import FactoryMethod.PizzaStore.LDPepperPizza;
import FactoryMethod.PizzaStore.Pizza;

/**
 * @Author Big_white
 * @Date 2021/10/29
 */
public class LDOrderPizza extends OrderPizza {


    @Override
    Pizza createPizza(String orderType) {

        Pizza pizza = null;
        if(orderType.equals("cheese")) {
            pizza = new LDCheesePizza();
        } else if (orderType.equals("pepper")) {
            pizza = new LDPepperPizza();
        }
        // TODO Auto-generated method stub
        return pizza;
    }

}

